package shake.context;

import java.io.ObjectStreamException;
import java.io.Serializable;

import shake.servlet.ShakeServletContext;

public class SeriarizableObject implements Serializable {

	public Object writeReplace() throws ObjectStreamException {
		SeriarizableObjectFactory factory = ShakeServletContext.getInjector()
				.getInstance(SeriarizableObjectFactory.class);
		return factory.create(this);
	}
}
